package com.zx.fm.service.impl;

import com.zx.fm.domain.GoodsLoan;
import com.zx.fm.domain.GoodsLoanVO;
import com.zx.fm.mapper.GoodsLoanMapper;
import com.zx.fm.service.IGoodsLoanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * -- 高贵的马儿驱逐体内的一切外力 --
 *
 * @author kaajee
 * @date 2025/9/6
 * @desc
 */
@Service
public class GoodsLoanServiceImpl implements IGoodsLoanService {
    @Autowired
    private GoodsLoanMapper goodsLoanMapper;
    @Override
    public List<GoodsLoanVO> selectGoodLoanList(GoodsLoanVO goodsLoanVO) {
        return goodsLoanMapper.selectGoodLoanList(goodsLoanVO);
    }

    @Override
    public GoodsLoanVO selectById(Long id) {
        return goodsLoanMapper.selectById(id);
    }

    @Override
    public int insert(GoodsLoan goodsLoan) {
        return goodsLoanMapper.insert(goodsLoan);
    }

    @Override
    public int updateById(GoodsLoan goodsLoan) {
        return goodsLoanMapper.updateById(goodsLoan);
    }

    @Override
    public int deleteById(Long id) {
        return goodsLoanMapper.deleteById(id);
    }
}
